package ads.server;

import java.io.Serializable;

public class SpreadRequestMessage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2832213568470748666L;
	private String method;
	private Serializable[] args;
	private String id;

	public SpreadRequestMessage(String id, String method, Serializable[] args) {
		super();
		this.id = id;
		this.method = method;
		this.args = args;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public Serializable[] getArgs() {
		return args;
	}

	public void setArgs(Serializable[] args) {
		this.args = args;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "(" + id + "," + method + "," + args + ")";
	}
}
